/*
 * @Author: zhouting qczhouting@yonyou.com
 * @Date: 2022-09-05 14:23:30
 * @LastEditors: zhouting qczhouting@yonyou.com
 * @LastEditTime: 2022-11-01 09:58:22
 * @FilePath: \cms_pk\src\api\repair\batchEventManagement\activityExecutionStatusQueryCDuan\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/**
 * @Author: 耿立强
 * @Date: 2019/6/20
 * @Last Modified by:   耿立强
 * @Last Modified time: 2019-06-20 15:45:00
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 批量活动执行情况查询 列表查询
export const getDMaExecuteCondition = params => axios.get(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpMa/getDMaExecuteCondition`, { params });
/*保存*/
export const editResDealer = params => axios.post(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpMa/editResDealer`, params);
//经销商列表查询
export const byAllInfo = params => axios.get(`${SERVER.CMSCLOUD_CHANNEL}/message/dealerAttach/dealerInfo/byAllInfo`);

//服务活动执行情况
export const getExecutionStatus = params => axios.get(`${SERVER.DMSCLOUD_ACTIVITY}/executionStatus/getExecutionStatus`, { params });
//服务活动执行情况明细
export const getExecutionStatusDetail = params => axios.get(`${SERVER.DMSCLOUD_ACTIVITY}/executionStatus/getExecutionStatusDetail`, { params });



export const getExecutionStatusForExport = params => {
  return axios({
    url: `${SERVER.DMSCLOUD_ACTIVITY}/executionStatus/getExecutionStatusForExport`,
    method: 'get',
    params: params,
    responseType: 'blob'
  });
};

export const exportDMaExecuteCondition = params => {
  return axios({
    url: `${SERVER.DMSCLOUD_ACTIVITY}/ttRpMa/exportDMaExecuteCondition`,
    method: 'get',
    params: params,
    responseType: 'blob'
  });
};
//下载中心导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
// 批量活动执行情况明细查询
export const getDMaExecuteConditionDetail = params => axios.get(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpMa/getDMaExecuteConditionDetail`, { params });
